package com.intramirror.wd.model.vo.page;

import com.intramirror.common.base.model.BaseInputVO;

public class PageInVo<T> extends BaseInputVO {
    private static final int DEFAULT_PAGE_NO = 1;
    private static final int DEFAULT_PAGE_SIZE = 30;
    private static final int MAX_PAGE_SIZE = 1000;
    private Integer pageSize = 10;
    private Integer page = 1;

    public PageInVo() {
    }

    public PageInVo(Integer pageNo, Integer pageSize) {
        this.setPage(pageNo);
        this.setPageSize(pageSize);
    }

    public static int getDefaultPageNo() {
        return DEFAULT_PAGE_NO;
    }

    public static int getDefaultPageSize() {
        return DEFAULT_PAGE_SIZE;
    }

    public static int getMaxPageSize() {
        return MAX_PAGE_SIZE;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}
